package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 供应商物料库存对象 tbl_material_stock
 *
 * @author 协同
 * @date 2022-04-20
 */
public class SupplierMaterial extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 供应商用户id
     */
    private Long supplierId;

    /**
     * 物料编码
     */
    private String code;

    /**
     * 物料名称
     */
    private String name;

    /**
     * 生产入库
     */
    private Integer production;

    /**
     * 退料入库
     */
    private Integer returnMaterial;

    /**
     * 采购出库
     */
    private Integer purchase;

    /**
     * 现有库存
     */
    private Integer existing;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setProduction(Integer production) {
        this.production = production;
    }

    public Integer getProduction() {
        return production;
    }

    public void setReturnMaterial(Integer returnMaterial) {
        this.returnMaterial = returnMaterial;
    }

    public Integer getReturnMaterial() {
        return returnMaterial;
    }

    public void setPurchase(Integer purchase) {
        this.purchase = purchase;
    }

    public Integer getPurchase() {
        return purchase;
    }

    public void setExisting(Integer existing) {
        this.existing = existing;
    }

    public Integer getExisting() {
        return existing;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("supplierId", getSupplierId())
                .append("code", getCode())
                .append("name", getName())
                .append("production", getProduction())
                .append("returnMaterial", getReturnMaterial())
                .append("purchase", getPurchase())
                .append("existing", getExisting())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
